package cn.schoolwow.ams.domain.block.list.dao.entityTable;

import cn.schoolwow.ams.domain.block.router.AbstractRouterBlock;

public abstract class EntityTableListBlockConfigAware extends AbstractRouterBlock {
    @Override
    public String getBlockUniqueName(){
        getAMSCacheBlockConfig();
        EntityTableListBlockOption amsEntityTableListBlockOption = (EntityTableListBlockOption) cacheBlockConfig;
        String blockUniqueName = "entityTableListBlock|"+cacheBlockConfig.projectName
                +"|"+ amsEntityTableListBlockOption.daoName
                +"|"+ amsEntityTableListBlockOption.entityClass.getSimpleName();
        return blockUniqueName;
    }

    public abstract EntityTableListBlockOption getAMSBlockConfig();
}
